package com.i2silly.wxbot.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.i2silly.wxbot.entity.BotChatroom;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BotChatroomMapper extends BaseMapper<BotChatroom> {

    boolean deleteByPid(String pid);

    List<String> distinctChatroomId(String pid);

    boolean delChatroomIds(String pid, List<String> list);

    List<BotChatroom> selectByChatroomIdAndPid(String chatroomId, String pid);

    boolean deleteByPidAndChatroomId(String pid, String chatroomId);

    List<BotChatroom> selectByPid(String pid);
}